package springboot.springboot06.Service.Impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import springboot.springboot06.Bean.Manager;
import springboot.springboot06.Service.ManagerService;
import springboot.springboot06.mapper.ManagerMapper;

import java.util.List;

@Service
public class ManagerServiceImpl implements ManagerService {

    @Autowired
    ManagerMapper managerMapper;

    public Manager getManager(Integer id){

        return managerMapper.getmanager(id);
    }

    public List<Manager> getManagers(){
        return managerMapper.getmanagers();
    }

    public void addManager(Manager manager){
        managerMapper.addManager(manager);
    }


}
